package com.ruoyi.channel.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.channel.domain.ChannelUserNumber;
import com.ruoyi.channel.domain.TChannelDataConf;
import com.ruoyi.channel.domain.vo.TChannelDataConfVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据渠道管理Mapper接口
 *
 * @author ruoyi
 * @date 2023-11-01
 */
public interface TChannelDataConfMapper extends BaseMapperPlus<TChannelDataConfMapper, TChannelDataConf, TChannelDataConfVo> {

    Page<TChannelDataConfVo> selectPageChannelDataList(@Param("page") Page<TChannelDataConfVo> page,
                                            @Param(Constants.WRAPPER) Wrapper<TChannelDataConf> queryWrapper);


    List<ChannelUserNumber> getUserNumber(@Param("channelDataId") Long channelDataId);


    int checkDataConfig(@Param("channelDataId") Long channelDataId, @Param("type") String type);


    String getChannelIdsByTel(@Param("tel") String tel);

}
